<template>
  <div>
    <div id="container"></div>
  </div>
</template>
​
<script>
export default {
  mounted() {
    // eslint-disable-next-line no-unused-vars,no-undef
    var map = new AMap.Map('container');
  }
}
</script>
​
<style scoped>
#container {width:100%; height: 480px; }
</style>